Skip to content

chore: Add UI linter back#3230

Merged
franciscojavierarceo merged 3 commits into
ogx-ai:mainfrom
franciscojavierarceo:precommit-ui-linter
Aug 22, 2025
Merged

chore: Add UI linter back#3230
franciscojavierarceo merged 3 commits into
ogx-ai:mainfrom
franciscojavierarceo:precommit-ui-linter

Conversation

@franciscojavierarceo

@franciscojavierarceo franciscojavierarceo commented Aug 22, 2025

Copy link
Copy Markdown
Collaborator

What does this PR do?

  1. Adds scripts/run-ui-linter.sh
    • Light script that checks whether node_modules,eslint, and prettier exist before running linter
    • When I introduced the linter for the UI it forced the UI linter on all users, the small node_modules check means that only users that have installed the UI locally (since node_modules is in the gitignore) will actually end up having this run. Additionally this does not do any install and just runs the existing linter/prettier as requested by @mattf
  2. Updates .github/workflows/pre-commit.yml to run CI again
    • When I introduced the UI linter in the CI in this PR a failure occurred because dependabot needed to be updated to also bump the package-lock.json which was done in this PR. All of this to say, we shouldn't observe failures from dependabot again.
  3. Updates .pre-commit-config.yaml
    • Calls scripts/run-ui-linter.sh

AI Assistance Notice

I used Copilot minimally.

Test Plan

As requested by @mattf I ran this after removing all of my node_modules and the linter passed.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 22, 2025
@franciscojavierarceo franciscojavierarceo force-pushed the precommit-ui-linter branch 2 times, most recently from 0b56aa7 to 9c77fe8 Compare August 22, 2025 03:40
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>

@mattf mattf left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@franciscojavierarceo franciscojavierarceo merged commit b0797e4 into ogx-ai:main Aug 22, 2025
5 checks passed
franciscojavierarceo added a commit to franciscojavierarceo/llama-stack that referenced this pull request Aug 25, 2025
# What does this PR do?

1. Adds `scripts/run-ui-linter.sh`
- Light script that checks whether `node_modules`,`eslint`, and
`prettier` exist before running linter
- When I introduced [the linter for the
UI](https://github.com/llamastack/llama-stack/pull/3156/files#diff-63a9c44a44acf85fea213a857769990937107cf072831e1a26808cfde9d096b9)
it forced the UI linter on all users, the small `node_modules` check
means that only users that have installed the UI locally (since
`node_modules` is in the gitignore) will actually end up having this
run. Additionally this does not do any install and just runs the
existing linter/prettier as requested by @mattf
2. Updates `.github/workflows/pre-commit.yml` to run CI again
- When I introduced the UI linter in the CI [in this
PR](ogx-ai#3191) a failure
occurred because dependabot needed to be updated to also bump the
`package-lock.json` which was done [in this
PR](ogx-ai#3212). All of this to
say, we shouldn't observe failures from dependabot again.
3. Updates `.pre-commit-config.yaml`
    - Calls `scripts/run-ui-linter.sh`

## AI Assistance Notice
I used Copilot minimally. 

## Test Plan
As
[requested](ogx-ai#3207 (comment))
by @mattf I ran this after removing all of my `node_modules` and the
linter passed.

Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants